package com.zfzs.post.modules.transaction.service.mapper.mybatis;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfzs.post.modules.transaction.domain.BenefitDay;
import com.zfzs.post.modules.transaction.service.dto.BenefitDay4MineDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author wq
 * @date 2019/10/28 10:28
 * @description
 */
@Mapper
public interface BenefitDayDao extends BaseMapper<BenefitDay> {

    List<BenefitDay4MineDTO> findMineDetail(@Param("agentId") Long agentId,@Param("isSelf") Integer isSelf,@Param("startDate") String startDate,@Param("endDate") String endDate, @Param("start") Integer start,@Param("pageSize") Integer pageSize);

    BigDecimal findTeamBenefitByAgentId(@Param("agentId") Long agentId,@Param("month") String month);

    BigDecimal findSelfBenefitByAgentId(@Param("agentId") Long agentId,@Param("month") String month);
}
